﻿package com.taihua_tech.basic.controller.note;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taihua_tech.basic.service.NoteService;
import com.taihua_tech.basic.util.NoteResult;

@Controller
@RequestMapping("/note")
public class SearchNoteController {
	@Resource
	private NoteService noteService;
	@RequestMapping("/search.do")
	@ResponseBody
	public NoteResult execute(
		String userId,String noteTitle,String noteStatus){
		NoteResult result = noteService.searchNote(
			userId, noteTitle, noteStatus);
		return result;
	}
	
}
